package com.hao.tx;

import com.hao.tx.service.AccountService;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * TODO
 *
 * @author 97472
 * @version 1.0
 * @date 2021/11/10 15:37
 */
public class test {
    @Test
    public void test1(){
        ApplicationContext context = new ClassPathXmlApplicationContext("spring.xml");
        AccountService accountService = context.getBean("accountServiceImpl", AccountService.class);
        accountService.transfer();
    }
}
